Sl 185 carregar o admin default pelo env#151
Draft
sle3pyy wants to merge 1 commit into
Draft
Conversation
…rds to be in the .env instead of hardcoded
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This pull request introduces support for securely managing default passwords for different Keycloak user roles (platform admin, content manager, and organization manager) using environment variables and secrets. The changes ensure that sensitive credentials are not hardcoded and can be easily configured for different environments (development and production). Updates span workflow configuration, application settings, Docker Compose files, and Keycloak import templates.
Keycloak password management and configuration:
PLATFORM_ADMIN_PASSWORD,CONTENT_MANAGER_PASSWORD, andORG_MANAGER_TEMP_PASSWORDto.github/workflows/cd.yml, including their usage in workflow steps to improve security and configurability. [1] [2].env.dev.exampleand.env.prod.example) to include placeholders for the new password variables, making it clear how to configure them in different environments. [1] [2]docker-compose.dev.ymlanddocker-compose.yml) to pass the new password environment variables to the Keycloak and API services, ensuring the services receive the correct credentials at runtime. [1] [2] [3] [4]Application and template updates:
settings.py) and service initialization (base_handler.py,realm_handler.py) to supportORG_MANAGER_TEMP_PASSWORDand ensure it is used when creating new Keycloak realms. [1] [2] [3]Other minor changes:
docker-compose.dev.yml.